using System.Collections;
using System.Collections.Generic;
using GameFramework;
using UnityEngine;

//自动生成于：2021/1/29 3:14:53
namespace StarForce
{

	public partial class WatermelonMainPage : UGuiForm
	{
		private WatermelonGame m_WatermelonGame;
		protected override void OnInit(object userdata)
		{
			base.OnInit(userdata);

			GetBindComponents(gameObject);
			
			m_Btn_Close.onClick.AddListener(Close);
		}

		protected override void OnOpen(object userData)
		{
			base.OnOpen(userData);
			m_WatermelonGame = (WatermelonGame) userData;
		}

		protected override void OnClose(bool isShutdown, object userData)
		{
			base.OnClose(isShutdown, userData);
			m_WatermelonGame.GameClose();
			
			GameEntry.Event.Fire(this,ReferencePool.Acquire<GameEndEventArgs>().Fill(GameMode.Watermelon));
		}
	}
}
